import requests


def get_symbols():
    url = "https://eapi.binance.com/eapi/v1/exchangeInfo"
    response = requests.get(url)
    data = response.json()
    optionSymbols = data['optionSymbols']
    return [x['symbol'] for x in optionSymbols]


symbols = get_symbols()
for symbol in symbols:
    url = f"https://eapi.binance.com/eapi/v1/klines?symbol={symbol}&interval=1d&limit=10"
    requests.get(url)
    response = requests.get(url)
    datas = response.json()
    print(symbol)
    if len(datas) == 0:
        print(f"{symbol} is empty")
    else:
        for data in datas:
            print(data)